package com.hone.honewed.controller.qcloudsms;

import com.eig.common.vo.Result;
import com.hone.honewed.service.qcloudsms.QcloudsmsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * @author ：YQ袁（2446806940@qq.com）
 * @date ：Created in 2023/1/6 15:59
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("/home/student/member")
public class QcloudsmsController {
    @Autowired
    private QcloudsmsService qcloudsmsService;


    @GetMapping("/getYanZhengMa/{member}")
    public Result getYanZhengMa(@PathVariable String member){
        return  qcloudsmsService.getYanZhengMa(member);
    }
    @PostMapping("/updateMemberPassword/{member}/{newPassword}")
    public Result updateMemberPassword(@PathVariable String member,
                                       @PathVariable String newPassword){
        System.out.println(newPassword+"@@@@@@@@@@@@@@@@");
        return qcloudsmsService.updateMemberPassword(member,newPassword);
    }
}
